package com.ccb.sc.common.modules.shopkeeper.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.modules.shopkeeper.enums.ApplyStatus;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 店主认证信息
 * </p>
 *
 * @author ken
 * @since 2023-02-12
 */
@Getter
@Setter
@TableName("tb_shopkeeper_auth")
public class ShopkeeperAuth extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 店主id
     */
    @TableField("shopkeeper_id")
    private Long shopkeeperId;

    /**
     * 真实姓名
     */
    @TableField("real_name")
    private String realName;

    /**
     * 身份证号
     */
    @TableField("id_no")
    private String idNo;

    /**
     * 银行卡号
     */
    @TableField("bank_account")
    private String bankAccount;

    /**
     * 支付宝号
     */
    @TableField("alipay_account")
    private String alipayAccount;

    /**
     * 审核状态 0待审核 1审核成功 2审核拒绝
     */
    @TableField("status")
    private ApplyStatus status;

    /**
     * 审核时间
     */
    @TableField(value = "audit_time", updateStrategy = FieldStrategy.IGNORED)
    private LocalDateTime auditTime;
}
